package com.mars.demo.service.impl;

import com.mars.demo.model.User;
import com.mars.demo.service.UserFeignClient;
import org.springframework.stereotype.Component;

/**
 * 调用出错之后的容错处理类
 */
@Component
public class UserFeignClientFallback implements UserFeignClient {

    @Override
    public String login(User user) {
        return "异常处理";
    }

    @Override
    public String testRibbon(int count) {
        return "异常处理 => 第几次调用：" + count;
    }

}
